package hczc.longcai.com.hccrowdfunding.home.fourth_mine.beans;

import java.io.Serializable;

/**
 * 地址
 * Created by Administrator on 2016/1/28.
 */
public class Address implements Serializable{

    /**
     * 当前被选中项的索引
     */
    private int index;

    /**
     * 在数据库中的id;
     */
    private int id;

    /**
     * 收货人姓名
     */
    private String name;
    /**
     * 收货人电话
     */
    private String phone;
    /**
     * 收货人地区
     */
    private String area;
    /**
     * 收货人地址
     */
    private String address;

    /**
     * 是否默认
     */
    private boolean dfault;

    public Address() {
    }

    public Address(String name, String phone, String area, String address, boolean dfault) {
        this.name = name;
        this.phone = phone;
        this.area = area;
        this.address = address;
        this.dfault = dfault;
    }

    public Address(int index, String name, String phone, String address, boolean dfault) {
        this.index = index;
        this.name = name;
        this.phone = phone;
        this.address = address;
        this.dfault = dfault;
    }

    public Address(String name, String phone, String address) {
        this.name = name;
        this.phone = phone;
        this.address = address;
    }

    public Address(String name, String phone, String address, boolean dfault) {
        this.name = name;
        this.phone = phone;
        this.address = address;
        this.dfault = dfault;
    }

    public Address(int index, String name, String phone, String area, String address, boolean dfault) {
        this.index = index;
        this.name = name;
        this.phone = phone;
        this.area = area;
        this.address = address;
        this.dfault = dfault;
    }

    public Address(int index, int id, String name, String phone, String area, String address, boolean dfault) {
        this.index = index;
        this.id = id;
        this.name = name;
        this.phone = phone;
        this.area = area;
        this.address = address;
        this.dfault = dfault;
    }

    public String getArea() {
        return area;
    }

    public void setArea(String area) {
        this.area = area;
    }

    public boolean isDfault() {

        return dfault;
    }

    public void setDfault(boolean dfault) {
        this.dfault = dfault;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public int getIndex() {
        return index;
    }

    public void setIndex(int index) {
        this.index = index;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    @Override
    public String toString() {
        return name;
    }
}
